package com.example.demo;

/**
 * @author LF
 * @date 2021/4/21 - 14:44
 */
public class IDService {
    private IDProperties idProperties;

    public IDService(IDProperties idProperties){
        this.idProperties = idProperties;
    }

    public String getId() {
        return idProperties.getMachineId() + "-" + System.currentTimeMillis();
    }
}
